#!/bin/bash  
# 关闭自动更新
sed -i 's/1/0/g' /etc/apt/apt.conf.d/20auto-upgrades  
sed -i 's/1/0/g' /etc/apt/apt.conf.d/10periodic  

sudo apt-get remove update-notifier